package Object;

import java.util.Random;

/**
@Auther: MFM
@Date: 2021/7/16 - 07 - 16 - 15:31 
@version: 1.0
*/

public class Work {

    public static void main(String[] args) {
        Random random = new Random();
        String time = String.valueOf(System.currentTimeMillis());
        System.out.println(time);
        String basicStr ="ABCDEFGHIGKLMNOPQRSTUVWXYZ0123456789";
        int index = 2;
        for (int i = 0; i < 5; i++) {
            String str1 = time.substring(0,index);
            String str2 = time.substring(index);
            char r = basicStr.charAt(random.nextInt(basicStr.length()));
            time = str1.concat(String.valueOf(r)).concat(str2);
            index = index+3;
        }
        System.out.println(time);
    }
}
